import { createStateContext } from 'react-use';

type State = {
  animating?: boolean;
  width?: number;
  height?: number;
  duration?: number;
  activeIndex?: number;
  maxIndex?: number;
};

const [useShapeContext, ShapeContextProvider] = createStateContext<State>({});

export { useShapeContext, ShapeContextProvider };
